<!DOCTYPE html>
<html lang="en" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
	  xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<link rel="stylesheet" href="/layui/css/layui.css">
	<link rel="stylesheet" href="/css/custom.form.css">
	<style>
		.layui-table-box {
			overflow: visible;
		}

		.layui-table-box {
			overflow: visible;
		}

		.layui-table-header {
			overflow: visible;
		}

		.layui-table-box {
			overflow: visible;
		}

		.layui-table-main {
			overflow: visible;
		}
	</style>
</head>
<body>
<div class="panel panel-default operation" >
	<div class="panel-heading title">稽比析参数设置</div>
	<div class="layui-card-body">
		<form class="layui-form " action="" lay-filter="info" style="width: 100%;">

			<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
				<legend>人均查补金额</legend>
			</fieldset>
			<div class="layui-form-item">
				<label class="layui-form-label">名次</label>
				<div class="layui-input-block">
					<input id="rjcbje_mc" type="rjcbje_mc" name="rjcbje_mc"
						   autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">积分</label>
				<div class="layui-input-block">
					<input id="rjcbje_jf" type="rjcbje_jf" name="rjcbje_jf"
						   autocomplete="off" class="layui-input">
				</div>
			</div>


			<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
				<legend>户均查补金额</legend>
			</fieldset>
			<div class="layui-form-item">
				<label class="layui-form-label">名次</label>
				<div class="layui-input-block">
					<input id="hjcbje_mc" type="hjcbje_mc" name="hjcbje_mc"
						   autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">积分</label>
				<div class="layui-input-block">
					<input id="hjcbje_jf" type="hjcbje_jf" name="hjcbje_jf"
						   autocomplete="off" class="layui-input">
				</div>
			</div>


			<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
				<legend>案件查处平均时长</legend>
			</fieldset>
			<div class="layui-form-item">
				<label class="layui-form-label">名次</label>
				<div class="layui-input-block">
					<input id="ajccpjsc_mc" type="ajccpjsc_mc" name="ajccpjsc_mc"
						   autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">积分</label>
				<div class="layui-input-block">
					<input id="ajccpjsc_jf" type="ajccpjsc_jf" name="ajccpjsc_jf"
						   autocomplete="off" class="layui-input">
				</div>
			</div>


			<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
				<legend>入库排名</legend>
			</fieldset>
			<div class="layui-form-item">
				<label class="layui-form-label">名次</label>
				<div class="layui-input-block">
					<input id="rkpm_mc" type="rkpm_mc" name="rkpm_mc"
						   autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">积分</label>
				<div class="layui-input-block">
					<input id="rkpm_jf" type="rkpm_jf" name="rkpm_jf"
						   autocomplete="off" class="layui-input">
				</div>
			</div>
			<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
				<legend>积分调整</legend>
			</fieldset>
			<div class="layui-form-item">
				<label class="layui-form-label">税务机关</label>
				<div class="layui-input-block">
					<select id="jftz_swjgdm">
						<option value=''>请选择</option>
						<option value="12101009000">稽查局</option>
						<option value="12101009100">第一稽查局</option>
						<option value="12101009200">第二稽查局</option>
						<option value="12101009300">第三稽查局</option>
					</select>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">积分</label>
				<div class="layui-input-block">
					<input id="jftz_jf" type="jftz_jf" name="jftz_jf"
						   autocomplete="off" class="layui-input">
				</div>
			</div>

			<div class="layui-form-item">
				<div class="layui-input-block">
					<button type="submit" class="layui-btn" lay-submit="" lay-filter="submit">保存</button>
				</div>
			</div>
		</form>
	</div>
</div>
</body>
</html>
<script src="/layui/layui.all.js"></script>
<script src="/js/core.util.js"></script>
<script>
	//获取token
	let token = CoreUtil.getData("access_token");
	//地址栏转义token中的#号
	let tokenQuery = token.replace("#", "%23");
	let tableIns1;
	let table = layui.table;
	let form = layui.form;
	let layer = layui.layer;
	let $ = jQuery = layui.jquery;
	let laydate = layui.laydate;
	let ssjdssj = "";
	layui.use(['table', 'layer', 'laydate'], function () {

		//监听保存
		form.on('submit(submit)', function (data) {
			layer.alert("保存成功！");
			return false;

			let map = {
				jcajxxuuid: $("#jcajxxuuid").val(),
				ajdyxx: $("#ajdyxx").val(),
				isSqgalhba: $("#isSqgalhba").val(),
				isDya: $("#isDya").val(),
				isHmd: $("#isHmd").val(),
				isYasc: $("#isYasc").val(),
				isYsgajg: $("#isYsgajg").val(),
				qzcs: $("#qzcs").val(),
				cgzzqyjwjskje: $("#cgzzqyjwjskje").val(),
				ajdx: $("#ajdx").val(),
				ycsdyqyksjsjtz: $("#ycsdyqyksjsjtz").val(),
				ajccsxjfother: $("#ajccsxjfother").val(),
				ssjdssj: ssjdssj,
				qtjf: $("#qtjf").val(),
				ajcccgjyzfxctjjf: $("#ajcccgjyzfxctjjf").val(),
				dxaldjyzfjf: $("#dxaldjyzfjf").val(),
				djjfsrxxgcddesdjs: $("#djjfsrxxgcddesdjs").val(),
				djjfcjjczzdjppxsgz: $("#djjfcjjczzdjppxsgz").val(),
				jjjf: $("#jjjf").val()
			}


			CoreUtil.sendPost("/compensate/update1", map, function (res) {
				$(".table_div").show();
				$(".operation").hide();
				search();
			});


			return false;
		});
	});

	//执行查询
	function search() {
		//这里以搜索为例
		tableIns1.reload({
			where: { //设定异步数据接口的额外参数，任意设
				jcajbh: $("#jcajbh").val()
			}
			, page: {
				curr: 1 //重新从第 1 页开始
			}
		});
	};
</script>